// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

import YFDrawCallView from "./YFDrawCallView";

const { ccclass, property } = cc._decorator;


@ccclass
export default class ItemCell extends cc.Component {

    @property(cc.Label)
    label: cc.Label = null;

    

    @property
    text: string = 'hello';

    // LIFE-CYCLE CALLBACKS:



    // onLoad () {}
    protected onLoad(): void {
        //this.label == cc.find('2',this.node).getComponent(cc.Label);
    }

    start() {
     

        //  this.selectNode.hide()
    }


    onActiveChanged() {
        // 处理 active 改变的逻辑
        if (this.node.active) {
            console.log("Node is now visible.");
        } else {
            console.log("Node is now hidden.");
        }
    }


    // update (dt) {}
}
